package com.teasale.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.teasale.entity.Order;
import com.teasale.vo.OrderGoodsOV;

import java.util.List;

/**
* @author water003
* @description 针对表【order】的数据库操作Service
* @createDate 2023-06-06 23:13:52
*/
public interface OrderService extends IService<Order> {
    List<Order> getallByUserId(Integer userid);


//    根据用户id获取所有订单
    List<OrderGoodsOV> find(Integer userId);

    String addOrders(Integer userId, String [] goodId,double orderPrice,double ogPrice,int[] ogNum);

    void delOrder(Integer orderId);

    void updateOrderPayStatus(Integer orderId, Integer status);

    List<OrderGoodsOV> selectAllOrder(String id);



}
